#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>


int main()
{
    const char * filename = "./record.txt";

    struct stat fileStatus;

    stat(filename,&fileStatus);

    /* 文件大小 */
    printf("file size = %ld\n",fileStatus.st_size);

    return 0;
}